package io.renren.modules.workflow.service;
import io.renren.common.utils.AjaxResult;
import io.renren.modules.workflow.entity.ActBusWorkflowData;
import io.renren.modules.workflow.entity.dto.ActBusTaskApproval;

import java.util.List;

/**
 * @Desc: 流程任务service
 * @auther: landlord
 * @date: 2021/7/30 17:30
 * @return:
 */
public interface IActBusTaskService {
   //我的代办查询列表
   public List<ActBusWorkflowData> selectMyProcessByUserList(ActBusWorkflowData actBusWorkflowData);

   //查询代办任务列表
   public List<ActBusWorkflowData> selectTaskAgentsByUserList(ActBusWorkflowData actBusWorkflowData);

    //查询代办任务列表
   public List<ActBusWorkflowData> selectHistoryTaskAgentsByUserList(ActBusWorkflowData actBusWorkflowData);

   //查询审批信息详情
    public AjaxResult queryTaskAgentsDetails(String taskId);
    //查询历史审批信息详情
    public AjaxResult queryHisTaskAgentsDetails(String processInstanceId);

    //获取可以退回的审批节点
    public AjaxResult GetBackToTheNodes(String taskId);

    //任务审批
    public AjaxResult TaskApproval(ActBusTaskApproval actBusTaskApproval) throws Exception;

    //任务驳回后 重新提交
    public AjaxResult resubmitTheTask(ActBusTaskApproval actBusTaskApproval) throws Exception;
}
